package org.dromara.business.modules.favorites.domain.bo;

import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.dromara.business.modules.favorites.domain.BuFavorites;
import org.dromara.common.core.validate.EditGroup;
import org.dromara.common.mybatis.core.domain.BaseEntity;

/**
 * 用户收藏业务对象 bu_favorites
 *
 * @author ckk
 * @date 2025-11-12
 */
@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = BuFavorites.class, reverseConvertGenerate = false)
public class BuFavoritesBo extends BaseEntity {

    /**
     * 主键ID
     */
    @NotNull(message = "主键ID不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 被收藏对象ID
     */
    private Long targetId;

    /**
     * 被收藏对象标题
     */
    private String targetTitle;

    /**
     * 被收藏对象类型，1-服务，2-需求
     */
    private Integer targetType;


}
